<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/22
  Time: 9:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function validData() {
             account = document.dlForm.account.value;
            password = document.dlForm.password.value;
            if (account !== "123456"){
                alert("账号错误");
                document.dlForm.account.focus();
                return;
            }else   if (password !== "123456"){
                alert("密码错误");
                document.dlForm.account.focus();
                return;
            }
            document.dlForm.submit();
            // window.location.href="dl_result.jsp";


        }
    </script>
</head>
<body>
<form name="dlForm" action="dl_result.jsp" method="post">
    账号:<input name="account" type="text"><br>
    密码：<input name="password" type="password"><br>
    <input type="submit" onclick="validData()" value="登录">
</form>
</body>
</html>
